home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 30
/
Aminet 30 (1999)(Schatztruhe)[!][Apr 1999].iso
/
Aminet
/
dev
/
mui
/
bcc_src.lha
/
Parser
/
test
/
ThisIsAClassWithLongName.c
< prev
next >
Wrap
C/C++ Source or Header
|
1998-02-23
|
2KB
|
114 lines
/*
This file was generated by BCC v2.0
MUI mode
*/
/* .bcc_code for MUI mode */
/* Defines that help adjusting to any compiler */
#ifdef _DCC
#define REG(x) __ ## x
#define ASM
#define SAVEDS __geta4
#else
#define REG(x) register __ ## x
#ifdef _STORM
#define ASM
#define SAVEDS __saveds
#else
#if defined __MAXON__ || defined __GNUC__
#define ASM
#define SAVEDS
#else
#define ASM __asm
#define SAVEDS __saveds
#endif
#endif
#endif
#ifndef PROTO_MUIMASTER_H
#include <proto/muimaster.h>
#endif
#ifndef PROTO_INTUITION_H
#include <proto/intuition.h>
#endif
#ifndef PROTO_UTILITY_H
#include <proto/utility.h>
#endif
#ifndef STRING_H
#include <string.h>
#endif
#ifndef LIBRARIES_BCC_H
#include <libraries/bcc.h>
#endif
#ifndef CLIB_ALIB_PROTOS_H
#include <clib/alib_protos.h>
#endif
/* Only for custom methods */
#define CallSuper() DoSuperMethodA(cl, obj, msg)
#define GetData() INST_DATA(cl, obj)
#include "ThisIsAClassWithLongName.h"
static unsigned long mThisIsAClassWithLongNameOM_NEW( struct IClass *cl, Object *obj, struct opSet* msg )
{
unsigned long _ret;
ThisIsAClassWithLongNameData *data;
obj = (Object*)DoSuperMethodA( cl, obj, (Msg)msg );
_ret = (unsigned long)obj;
if( !obj ) return 0;
data = INST_DATA( cl, obj );
{
/* UC Beg */
(data->blee) = 0;
}
/* UC End */
OM_NEW_exit:
return _ret;
}
static unsigned long mThisIsAClassWithLongNameAnotherVeryLongStringUsed( struct IClass *cl, Object *obj, Msg msg )
{
unsigned long _ret = 1;
ThisIsAClassWithLongNameData *data = INST_DATA( cl, obj );
{
/* UC Beg */
/* Nothing */
}
/* UC End */
AnotherVeryLongStringUsed_exit:
return _ret;
}
/* MUI - ThisIsAClassWithLongName class dispatcher */
static unsigned long SAVEDS ASM ThisIsAClassWithLongName_Dispatcher( REG(a0) struct IClass *cl, REG(a2) Object *obj, REG(a1) Msg msg )
{
switch( msg->MethodID ) {
case MUIM_ThisIsAClassWithLongName_AnotherVeryLongStringUsed: return mThisIsAClassWithLongNameAnotherVeryLongStringUsed( cl, obj, (Msg)msg );
case OM_NEW: return mThisIsAClassWithLongNameOM_NEW( cl, obj, (struct opSet*)msg );
}
return( DoSuperMethodA( cl, obj, msg ) );
}
struct MUI_CustomClass *ThisIsAClassWithLongName_Create( void )
{
return MUI_CreateCustomClass( NULL, MUIC_Notify, NULL, sizeof( ThisIsAClassWithLongNameData ), ThisIsAClassWithLongName_Dispatcher );
}